package com.cn.springcloudwechat;

;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;

@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.cn.springcloudwechat.mapper.mapper")
@Configuration
@EnableCaching
@ComponentScan(basePackages={"com.cn"})
public class SpringCloudWeChatApplication extends SpringBootServletInitializer  {

	public SpringCloudWeChatApplication() {
		super();
		setRegisterErrorPageFilter(false);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

		return application.sources(SpringCloudWeChatApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(SpringCloudWeChatApplication.class, args);
	}



}
